<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>07.v-show</title>
</head>
<body>
<div id="app">
    <input type="button" value="展示/隐藏标签" @click="vShow">
    <p>底层是修改display属性，标签本身还是存在</p>
    <h2 v-show="true">这里会显示</h2>
    <h2 v-show="show">这里是隐藏的标签</h2>
</div>
<script src="js/vue.js"></script>
<script>
    const app = new Vue({
        el: "#app",
        data: {
            show: false
        },
        methods: {
            vShow() {
                this.show = !this.show
            }
        }
    })
</script>
</body>
</html>